package com.hns.can.common.domain;

import java.util.ArrayList;
import java.util.List;

/**
 * 数据集
 * 包含字段定义和记录
 * @author anysome
 *
 */
public class Dataset {

	List<Field> fields;
	List<Record> records;
	
	public Dataset() {
		fields = new ArrayList<Field>();
		records = new ArrayList<Record>();
	}
	
	public Dataset copy(boolean b) {
		Dataset ds = new Dataset();
		ds.fields = this.fields;
		if (true) {
			ds.records = this.records;
		}
		return ds;
	}

	public List<Field> getFieldList() {
		return fields;
	}
	
	public List<Record> getRecordList() {
		return records;
	}

	public void addRecord(Record record) {
		records.add(record);
	}
	
	public void addField(Field field) {
		fields.add(field);
	}

}
